﻿import java.util.Scanner;

public class prac_01 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入快捷号码数字：");
		if(sc.hasNextInt()){
			int num = sc.nextInt();
			switch(num){
			case 1:
				System.out.println("正在拨通爸爸的号码...");
				break;
			case 2:
				System.out.println("正在拨通妈妈的号码...");
				break;
			case 3:
				System.out.println("正在拨通爷爷的号码...");
				break;
			case 4:
				System.out.println("正在拨通奶奶的号码...");
				break;
			default:
				System.out.println("错误，该号码快捷键不存在！");
				break;
			}
		}else{
			System.out.println("错误，请输入正确的数字！");
		}
	}

}
